/*
 * @Author: Lizhenyu
 * @Date: 2021-07-13 10:21:32
 * @FilePath: \usp-osm-frondend\src\api\attribute.js
 */
import { service } from '@/utils/request'

const api = {
  attributeList: '/admin/mdse/attributes/list',
  attributeDetail: '/admin/mdse/attributes/edit',
  saveAttribute: '/admin/mdse/attributes/save'
}

export function getAttribute (data) {
  return service({
    url: api.attributeList,
    method: 'post',
    data
  })
}

export function getAttributeDetail (data) {
  return service({
    url: api.attributeDetail,
    method: 'post',
    data
  })
}

export function updateAttribute (data) {
  return service({
    url: api.saveAttribute,
    method: 'post',
    data
  })
}
